<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:param name="pvb" value="#{commonContentViewBean.parent}" />
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="编辑文书信息" />
	<ui:param name="compToggleable" value="false" />

	<ui:define name="compContent">
		<p:tabView activeIndex="0" effect="opacity" effectDuration="normal">
			<p:tab title="基本" style="margin:0;padding:0;border:0;">
				<ui:param name="partViewBean"
					value="#{commonContentViewBean.allView[0]}" />
				<ui:include src="/includes/model/manage/writ/writBase.xhtml" />
			</p:tab>
			<p:tab title="标签集" style="margin:0;padding:0;border:0;">
				<ui:param name="partViewBean"
					value="#{commonContentViewBean.allView[1]}" />
				<ui:include src="/includes/model/manage/writ/writTagElemnet.xhtml" />
			</p:tab>
			<p:tab title="查询模板" style="margin:0;padding:0;border:0;">
				<ui:param name="partViewBean"
					value="#{commonContentViewBean.allView[2]}" />
				<ui:include
					src="/includes/model/manage/writ/writSearchTemplate.xhtml" />
			</p:tab>
			<c:forEach var="printViewBean"
				items="#{commonContentViewBean.allView[3].printTemplateList}">
				<p:tab title="#{printViewBean.templateFullName}"
					style="margin:0;padding:0;border:0;">
					<ui:param name="partViewBean" value="#{printViewBean}" />
					<ui:include
						src="/includes/model/manage/writ/writPrintTemplate.xhtml" />
				</p:tab>
			</c:forEach>
		</p:tabView>
	</ui:define>

	<ui:define name="compButtons">
		<ui:param name="parentViewBeanId"
			value="#{commonContentViewBean.parent.id}" />
		<p:commandButton title="保存" value="保存"
			onclick="V3.Writ.saveWritCheck('#{compId}','writName')">

		</p:commandButton>
		<p:commandButton title="关闭" value="关闭" type="button"
			onclick="#{compId}_dialog.hide();" />

		<p:remoteCommand name="#{compId}_saveWrit"
			actionListener="#{documentManageAction.saveWritAction}"
			oncomplete="#{compId}_dialog.hide();"
			update="#{pvb.id}_left_form,#{pvb.id}_right_form:#{pvb.id}_right_main">
			<h:inputHidden value="#{compId}" />
		</p:remoteCommand>
	</ui:define>

</ui:composition>